    <?php
$table      ="[php_property:table]";
$where      ="[php_property:where]";
$orderby    ="[php_property:orderby]";
$limit     ="[php_property:limit]";

$orginalBody=$body;
$body       ="";

$fieldList  =regex::getRegexTable("\[([^':\"\$]+?)\]", $orginalBody);

foreach (data::getTable($table, $where, $orderby, $limit)as $data)
    {
    $tmpHtml = $orginalBody;

    foreach ($fieldList as $field)
        {
        $tmpHtml=str_ireplace($field[0], $data[$field[1]], $tmpHtml);
        }

    $body=$body . $tmpHtml;
    }
?>